<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>公众号登录</title>
    <script type="text/javascript" src="/js/jquery.js"></script>
</head>
<body>

<div id ="J_name">

</div>
<div id = "J_phone">

</div>
<div id = "J_role_name"></div>
<div id = "J_pic"></div>
<script>
    $(function(){
        var data = {id:"${id}"}
        var url = "/user/user_info";
        $.ajax({
            type: "POST",
            async: false,
            dataType: 'json',
            contentType: "application/json; charset=utf-8",
            data: JSON.stringify(data),
            url: url,
            success: function(res){
                if(res.code == 200){
                    var datas = res.data;
                    $("#J_name").append(datas.name);
                    $("#J_phone").append(datas.phone);
                    $("#J_pic").append("<img src='"+datas.qrcode+"'>");
                    $("#J_role_name").append(datas.role_name);
                }else{
                    alert(res.msg);
                }
            },
            error: function(){

            },
            complete: function(){
            }
        });
    });
</script>
</body>
</html>
